﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using QLTV_BLL;
using QLTV_Public;

namespace QLTV_GiaoDien
{
    public partial class uc_ThongKeTraTLQuaHan : DevExpress.XtraEditors.XtraUserControl
    {
        public uc_ThongKeTraTLQuaHan()
        {
            InitializeComponent();
        }
        ThongKe_BLL thongKe_bll = new ThongKe_BLL();
        private void uc_ThongKeTraTLQuaHan_Load(object sender, EventArgs e)
        {
            gridControl1.DataSource = thongKe_bll.ThongKe_QuaHan_DaTra();
        }

        private void bbi_DaTra_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            gridControl1.DataSource = thongKe_bll.ThongKe_QuaHan_DaTra();
        }

        private void bbi_DangMuon_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            
            gridControl1.DataSource = thongKe_bll.ThongKe_QuaHan_DangMuon();
        }
        private void bbi_In_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            gridControl1.ShowPrintPreview();
        }

        private void bbi_Refresh_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            uc_ThongKeTraTLQuaHan_Load(sender,e);
        }


    }
}
